import 'package:study_demo/base/BaseController.dart';
import 'package:url_launcher/url_launcher.dart';

class ProblemController extends BaseController {
  final gameCenterProblemUrl = 'https://docs.qq.com/doc/DVkdPTnVmVm5ZdFd3';

  final yzGoPlatProblemUrl = 'https://docs.qq.com/doc/DVnhEQ1VHS013TmZj';

  final yzTeachProblemUrl = 'https://docs.qq.com/doc/DVlZPTHNZZmlFblpV';

  goGameCenterProblem() {
    goUrl(gameCenterProblemUrl);
  }

  goYzGoPlatProblem() {
    goUrl(yzGoPlatProblemUrl);
  }

  goUrl(String url) {
    launchUrl(Uri.parse(url));
  }

  goYzTeachProblem() {
    goUrl(yzTeachProblemUrl);
  }
}
